#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include "comm.hpp"
#include <fcntl.h>
#include <unistd.h>
using namespace std;
int main()
{
    int fd=open(fifo_file,O_WRONLY);
    if(fd<0)
    {
        cerr<<"open fifo error"<<endl;
        return 1;
    }
    while(1)
    {
        cout<<"please enter:"<<endl;
        string message;
        cin>>message;
        int n=write(fd,message.c_str(),message.size());
        if(n>0)
        {

        }
    }
    return 0;
}